home *** CD-ROM | disk | FTP | other *** search
- Path: news1.cris.com!news
- From: aubrey@concentric.net (Aubrey Harrison)
- Newsgroups: comp.lang.c
- Subject: Re: What to do when feof() is NOT feof()
- Date: 18 Feb 1996 18:41:23 GMT
- Organization: Concentric Internet Services
- Message-ID: <4g7rsj$fnf@spectator.cris.com>
- References: <824554814snz@metsys.demon.co.uk> <4g4vpp$52f@spectator.cris.com> <danpop.824614833@rscernix>
- NNTP-Posting-Host: cnc022033.concentric.net
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.6
-
- In article <danpop.824614833@rscernix>, danpop@mail.cern.ch says...
- >
- >In <4g4vpp$52f@spectator.cris.com> aubrey@concentric.net (Aubrey Harrison)
- writes:
- >
- >
- >>I think if you open the file in "text" mode the end of the file is indicated
- by
- >>the EOF marker (ASCII 26 I believe). To avoid this you must open the file in
- >>binary mode.
- >
- >Once again: ignorants and idiots are kindly asked to refrain from posting
- >their thoughts and beliefs to this newsgroup.
- >
- >If you don't KNOW what you're talking about, just keep your "mouth" shut.
- >This is comp.lang.c, not talk.rumors.
- >
- >Dan
- >--
- >Dan Pop
- >CERN, CN Division
- >Email: danpop@mail.cern.ch
- >Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-
- Who died and left you king. Most of the messages I have read from you do
- nothing but harass and ridicule people, rarely ever offering an help or
- suggestions. I may not be an expert but I know if you open a file with fopen(
- "filename", "rt"), then fgets stops reading when it finds a ascii 26 and
- signals end-of-file. If you open it with fopen( "filename","rb") it reads until
- the real end-of-file. I noticed in your smart-ass reply you did not offer any
- answers to his problem. Maybe you should take you own advice.
-
-